error detection code

错误检测代码